package www.houdoudou.com.parent;

import net.sf.json.JSONObject;

import com.houdoudou.com.machine.MachineManage;
import com.houdoudou.com.owner.OwnerManagement;

public class ParentManageMachine {
	
	public static JSONObject manageMachine(String jsonData){
		JSONObject result = new JSONObject();
	//	JSONObject jsonfrom= JSONObject.fromObject(jsonData);			
		JSONObject jsoncheck=ParentManager.loginCheck(jsonData);
		
		if(jsoncheck.getBoolean("ActionStatus")){
			result =MachineManage.manageMachine(jsonData);	
		}else{
			result.put("ActionStatus", false);
			result.put("ErrorInfo", "登陆存储不正确");
		}
		
		return result;
	}

}
